package main

import (
	"fmt"
)

type Student struct {
	Name 	string
	Age 	int
	Score 	int
}

func (t *Student) init(name string,age int,score int) {
	t.Score = score
	t.Name = name
	t.Age = age
	fmt.Println(t)
}

func (p Student) String() string{
	str := fmt.Sprintf("name=[%s] age=[%d] score=[%d]",p.Name,p.Age,p.Score)
	return str
}

func (this Student) get() Student {
	return this
}

func main() {
	var stu Student
	stu.init("zhangsan",18,90)
	fmt.Println(stu.get())
	fmt.Println(stu)
}
